package com.xquant.databasemanagement.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import javafx.beans.property.SimpleStringProperty;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class DataBaseObject {

    private final SimpleStringProperty name = new SimpleStringProperty();

    @JacksonXmlProperty(isAttribute = true)
    public String getName() {
        return name.get();
    }

    public SimpleStringProperty nameProperty() {
        return name;
    }

    @JacksonXmlProperty(isAttribute = true)
    public void setName(String name) {
        this.name.set(name);
    }

    @Override
    public String toString() {
        return name.getValue();
    }
}
